
/*
 * @Description: 数据存储
 * @Author: XuYang
 * @Date: 2019-06-09 10:13:50 
 * @Last Modified by: XuYang
 * @Last Modified time: 2019-06-17 14:41:43
 */

import Storage from 'react-native-storage';
import { AsyncStorage } from 'react-native';
// import AsyncStorage from '@react-native-community/async-storage';

const storage = new Storage({
  size: 1000,
  storageBackend: AsyncStorage,
  defaultExpires: null,
  enableCache: true,
});
global.storage = storage;
